Instalasi & Konfigurasi BIND9 (DNS Server)

Panduan lengkap — from preparing netplan to setting up forward & reverse zones, checks and troubleshooting.

1. Update System & Install BIND9

sudo apt update sudo apt upgrade -y sudo apt install bind9 bind9utils bind9-doc -y

2. Configure Netplan

network: version: 2 renderer: networkd ethernets: ens33: dhcp4: no addresses: - 192.168.16.2/24 gateway4: 192.168.16.1 nameservers: addresses: [8.8.8.8, 1.1.1.1]

3. Configure Forward Zone

; ; BIND data file for kelompok5.sis.local ; $TTL    604800 @       IN      SOA     ns.kelompok5.sis.local. admin.kelompok5.sis.local. ( 2         ; Serial 604800         ; Refresh 86400         ; Retry 2419200         ; Expire 604800 )       ; Negative Cache TTL ; @       IN      NS      ns.kelompok5.sis.local. @       IN      A       192.168.16.2 ns      IN      A       192.168.16.2 www     IN      A       192.168.16.3 mail    IN      A       192.168.16.4 ftp     IN      A       192.168.16.5

4. Configure Reverse Zone

; ; BIND reverse data file for 192.168.16.x ; $TTL    604800 @       IN      SOA     ns.kelompok5.sis.local. admin.kelompok5.sis.local. ( 1         ; Serial 604800         ; Refresh 86400         ; Retry 2419200         ; Expire 604800 )       ; Negative Cache TTL ; @       IN      NS      ns.kelompok5.sis.local. 2       IN      PTR     ns.kelompok5.sis.local. 3       IN      PTR     www.kelompok5.sis.local. 4       IN      PTR     mail.kelompok5.sis.local. 5       IN      PTR     ftp.kelompok5.sis.local.

5. Configure named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
include "/etc/bind/zones.rfc1918";

zone "kelompok5.sis.local" {
    type master;
    file "/etc/bind/db.kelompok5.sis.local";
};

zone "16.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/db.192.168.16";
};

6. Testing & Verification

sudo systemctl restart bind9 sudo systemctl status bind9 sudo named-checkconf sudo named-checkzone kelompok5.sis.local /etc/bind/db.kelompok5.sis.local nslookup ns.kelompok5.sis.local nslookup 192.168.16.3
Last updated: 8/23/2025
    Z.ai Code Scaffold - AI-Powered Development